* {
            box-sizing: border-box;
            margin: 0;
            font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
        }
        body {
            background: #eef2f6;
            display: flex;
            justify-content: center;
            padding: 1.5rem;
            min-height: 100vh;
        }
        .builder {
            max-width: 1600px;
            width: 100%;
            background: white;
            border-radius: 2rem;
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .header {
            background: #ffffffea;
            backdrop-filter: blur(8px);
            padding: 1.2rem 2rem;
            border-bottom: 1px solid #e9eef2;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }
        .logo h1 {
            font-size: 1.8rem;
            font-weight: 700;

       
           
            letter-spacing: -0.02em;
        }
        .logo small {
            font-size: 0.8rem;
            background: #eef5ff;
            padding: 0.2rem 0.8rem;
            border-radius: 40px;
            margin-left: 1rem;
            font-weight: 500;
        }
        .main-grid {
            display: grid;
            grid-template-columns: 320px 1fr 300px;
            gap: 1.2rem;
            padding: 1.8rem;
            background: #f9fbfd;
            flex: 1;
        }
        /* left panel – add + AI assistant */
        .add-panel {
            background: white;
            border-radius: 1.5rem;
            padding: 1.5rem;
            box-shadow: 0 8px 20px -8px rgba(0,0,0,0.08);
            border: 1px solid #eef2f6;
            overflow-y: auto;
            max-height: 70vh;
        }
        .add-panel h3 {
            font-size: 1rem;
            text-transform: uppercase;
            color: #64748b;
            margin-bottom: 1.2rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .ai-section {
            background: #f0f4fe;
            border-radius: 1.2rem;
            padding: 1.2rem;
            margin-bottom: 1.8rem;
            border: 1px solid #b8cef0;
        }
        .ai-section h4 {
            font-size: 0.9rem;
            color: #1b4a8b;
            margin-bottom: 0.8rem;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .ai-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        .ai-btn {
            background: white;
            border: 1px solid #a0bbda;
            border-radius: 40px;
            padding: 0.4rem 1rem;
            font-size: 0.8rem;
            font-weight: 600;
         
            cursor: pointer;
            transition: 0.1s;
            box-shadow: 0 2px 5px #00000008;
        }
        .ai-btn:hover {
            background: #e1ebfa;
            transform: scale(1.02);
        }
        .input-group {
            margin-bottom: 1.2rem;
        }
        .input-group label {
            font-size: 0.85rem;
            font-weight: 600;
            color: #334155;
            display: block;
            margin-bottom: 0.3rem;
        }
        .input-group input, .input-group select, .input-group textarea {
            width: 100%;
            padding: 0.7rem 1rem;
            border: 1px solid #cbd5e1;
            border-radius: 14px;
            font-size: 0.95rem;
        }
        .input-group textarea {
            resize: vertical;
            min-height: 70px;
        }
        .rating-stars {
            display: flex;
            gap: 0.3rem;
            font-size: 1.8rem;
            color: #d1d9e6;
            cursor: pointer;
        }
        .rating-stars .star.active {
            color: #f5b342;
        }
        .file-hint {
            font-size: 0.75rem;
            color: #64748b;
            margin-top: 4px;
        }
        .btn {
            background: white;
            border: 1px solid #cbd5e1;
            padding: 0.7rem 1.2rem;
            border-radius: 40px;
            font-weight: 600;
            font-size: 0.9rem;
            color: #1e293b;
            cursor: pointer;
            transition: 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 6px -2px rgba(0,0,0,0.05);
        }
        .btn-primary {
            background: #1b4a8b;
            border-color: #0f2b4f;
            color: white;
            box-shadow: 0 8px 16px -4px #1b4a8b40;
            width: 100%;
            justify-content: center;
        }
        .btn-primary:hover {
            background: #0f3a6b;
        }
        .btn:hover {
            background: #f1f5f9;
            transform: translateY(-2px);
        }
        /* center preview */
        .preview-panel {
            background: white;
            border-radius: 1.5rem;
            padding: 1.5rem;
            box-shadow: 0 8px 20px -8px rgba(0,0,0,0.08);
            border: 1px solid #eef2f6;
            overflow-y: auto;
            max-height: 70vh;
        }
        .preview-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        .preview-header h3 {
            color: #64748b;
            font-size: 1rem;
            text-transform: uppercase;
        }
        #testimonialCount {
            background: #e6edf8;
            padding: 0.2rem 0.8rem;
            border-radius: 40px;
            font-size: 0.8rem;
            font-weight: 600;
            color: #1b4a8b;
        }
        .testimonial-card {
            margin-bottom: 1.2rem;
            position: relative;
        }
        .delete-card {
            position: absolute;
            top: 10px;
            right: 10px;
            background: #fee2e2;
            border: none;
            color: #b91c1c;
            width: 32px;
            height: 32px;
            border-radius: 30px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }
        .delete-card:hover {
            background: #fecaca;
            transform: scale(1.1);
        }
        .empty-collection {
            color: #94a3b8;
            text-align: center;
            padding: 3rem 0;
            font-style: italic;
        }
        /* right panel – properties & pdf download */
        .properties-panel {
            background: white;
            border-radius: 1.5rem;
            padding: 1.5rem;
            box-shadow: 0 8px 20px -8px rgba(0,0,0,0.08);
            border: 1px solid #eef2f6;
            overflow-y: auto;
            max-height: 70vh;
        }
        .properties-panel h3 {
            font-size: 1rem;
            color: #64748b;
            margin-bottom: 1.5rem;
        }
        .prop-group {
            margin-bottom: 1.2rem;
        }
        .prop-group label {
            font-size: 0.85rem;
            font-weight: 600;
            color: #334155;
            display: block;
            margin-bottom: 0.3rem;
        }
        .prop-group select, .prop-group input {
            width: 100%;
            padding: 0.6rem 0.8rem;
            border: 1px solid #cbd5e1;
            border-radius: 14px;
        }
        .prop-group.checkbox {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .prop-group.checkbox input {
            width: auto;
        }
        .download-section {
            margin-top: 2rem;
            border-top: 2px solid #eef2f6;
            padding-top: 1.5rem;
        }
        .badge {
            background: #dcfce7;
            color: #166534;
            font-size: 0.75rem;
            padding: 0.2rem 0.6rem;
            border-radius: 40px;
        }
        footer {
            padding: 0.8rem 2rem;
            border-top: 1px solid #e9eef2;
            color: #6b7a8f;
            font-size: 0.9rem;
            display: flex;
            justify-content: space-between;
            background: white;
        }
        .file-error {
            color: #b91c1c;
            font-size: 0.8rem;
        }
        /* card styles */
        .client-image {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            overflow: hidden;
            background: #d9e2ef;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .client-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .client-info { flex:1; }
        .client-name { font-weight:700; font-size:1.1rem; }
        .client-rating { font-size:0.9rem; margin-top:4px; }
        .testimonial-text { margin:0.8rem 0 0.5rem; font-style:italic; line-height:1.5; }
        .testimonial-meta { font-size:0.8rem; color:#68788c; display:flex; gap:1rem; }

        /* 20 templates (unchanged) */
        .template-1 { background: white; border: 1px solid #e2e8f0; border-radius: 16px; padding: 1.2rem; box-shadow: 0 4px 6px -2px #0000000d; }
        .template-2 { background: #fef9e7; border-left: 6px solid #f5b342; border-radius: 12px; padding: 1.2rem; }
        .template-3 { background: #f0f7ff; border-radius: 24px; padding: 1.5rem; box-shadow: 0 10px 15px -3px #1b4a8b1a; }
        .template-4 { background: white; border: 2px dotted #94a3b8; border-radius: 8px; padding: 1.2rem; }
        .template-5 { background: linear-gradient(145deg, #f8fafc, #ffffff); border-radius: 20px; padding: 1.2rem; box-shadow: 0 20px 25px -5px #0000001a; }
        .template-6 { background: #1e293b; color: white; border-radius: 16px; padding: 1.2rem; }
        .template-6 .client-name { color: #f5b342; }
        .template-7 { background: white; border-radius: 12px; padding: 1.2rem; box-shadow: 0 0 0 2px #1b4a8b, 0 8px 0 0 #0f2b4f; }
        .template-8 { background: #eceef2; border-radius: 30px 0 30px 0; padding: 1.5rem; }
        .template-9 { background: #ffffff; border: 1px solid #cbd5e1; padding: 1.2rem; position: relative; }
        .template-9::before { content: "“"; font-size: 4rem; color: #cbd5e1; position: absolute; top: -10px; left: 10px; opacity: 0.3; }
        .template-10 { background: #0b2b5c; color: white; border-radius: 30px; padding: 1.2rem; }
        .template-10 .client-rating { color: #f5b342; }
        .template-11 { background: white; border-radius: 8px; padding: 1.2rem; border-bottom: 4px solid #1b4a8b; }
        .template-12 { background: #f1f5f9; border-radius: 50px 0 50px 0; padding: 1.2rem; }
        .template-13 { background: #ffffff; box-shadow: 0 0 0 1px #d9e2ef, 0 6px 0 0 #d9e2ef; padding: 1.2rem; }
        .template-14 { background: #fef2f2; border-radius: 18px; padding: 1.2rem; border: 2px solid #fecaca; }
        .template-15 { background: white; padding: 1.2rem; border: 1px solid #e2e8f0; transform: rotate(0.5deg); box-shadow: 5px 5px 0 #cbd5e1; }
        .template-16 { background: #ecfdf5; border-radius: 12px; padding: 1.2rem; border-left: 6px solid #10b981; }
        .template-17 { background: #ffffff; border-radius: 40px 0 40px 0; background: linear-gradient(135deg, #f9fafb, #ffffff); }
        .template-18 { background: #312e81; color: white; border-radius: 8px; padding: 1.2rem; }
        .template-18 .client-rating { color: #fcd34d; }
        .template-19 { background: white; border: 3px double #1e293b; padding: 1.2rem; }
        .template-20 { background: #faf5ff; border-radius: 30px; padding: 1.2rem; box-shadow: inset 0 -2px 0 #a78bfa; }
    